import 'package:flutter/material.dart';

/// ActionBarIcon
class LeadingButton extends StatelessWidget {
  String iconPath;
  VoidCallback callback;

  LeadingButton(this.iconPath, this.callback, {Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return IconButton(
        onPressed: () {
          callback.call();
        },
        icon: Container(
          decoration: BoxDecoration(
              shape: BoxShape.circle,
              image: DecorationImage(
                  fit: BoxFit.cover, image: AssetImage(iconPath))),
        ));
  }
}
